package com.hxht.storage.server.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.fasterxml.jackson.annotation.JsonProperty;

@XmlRootElement(name = "nvr")
public class NvrDeviceBean {
	
	/** DVR设备SN号 */
	private String deviceId;
	
	/** deviceType: DVR设备类型，<br/>
	 * 	1 - 海康;<br/>
	 *  其他类型预留  */
	private int deviceType;
	
	/** subDeviceType: DVR设备子类型，预留 */
	private int subDeviceType;
	
	/** DVR设备IP地址 */
	private String ip;
	
	/** DVR设备端口 */
	private int port;
	
	/** DVR设备登陆用户名 */
	private String username;
	
	/** DVR设备登陆密码 */
	private String passwd;
	
	/** dvr在线标识  */
	private boolean isOnline;
	
	/** nvr支持的最大通道数 */
	private int maxIpchannels;
	
	/** nvr 磁盘信息 */
	private List<NvrDiskBean> diskList;
	
	public NvrDeviceBean(){}

	public List<NvrDiskBean> getDiskList() {
		return diskList;
	}

	public void setDiskList(List<NvrDiskBean> diskList) {
		this.diskList = diskList;
	}

	@JsonProperty("device-id")
	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public int getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(int deviceType) {
		this.deviceType = deviceType;
	}

	public int getSubDeviceType() {
		return subDeviceType;
	}

	public void setSubDeviceType(int subDeviceType) {
		this.subDeviceType = subDeviceType;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public boolean isOnline() {
		return isOnline;
	}

	public void setOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}

	public int getMaxIpchannels() {
		return maxIpchannels;
	}

	public void setMaxIpchannels(int maxIpchannels) {
		this.maxIpchannels = maxIpchannels;
	}
	
}
